package com.ilop.sthome.mvp.contract.device;

import android.widget.LinearLayout;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.DeviceInfoBean;

import java.util.List;

/**
 * @author skygge
 * @date 2020/7/13.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface DeviceForTypeContract {

    interface IView extends IBaseView {

        void showDeviceList(List<DeviceInfoBean> list);

        void showDeviceIsEmpty();

        void showDeviceType(List<String> types);

        void showArrowIcon(boolean isOpen);

        void showLoadingView();

        void removeLoadingView();
    }

    interface IPresent extends IBasePresenter<IView> {

        void findDeviceByType(List<String> deviceType);

        void findAllDeviceType();

        void findAllSubDevice();

        void refreshByPosition(String deviceType);

        void showAllDeviceType(LinearLayout layout, int height);
    }
}
